<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
    <!-- Bootstrap Core CSS -->
    <link href="__CDN__/assets/libs/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="__CDN__/assets/css/index.css" rel="stylesheet">
		<link rel="stylesheet" href="/assets/niu/images/style.css">
		<script src="/assets/js/jquery.js"></script>
		<script src="/assets/js/bootstrap.min.js"></script>
		<script src="/assets/niu/js/ksbaoname.js"></script>
		<script src="/assets/niu/images/sjb.js" charset="utf-8"></script>
		<link rel="stylesheet" href="/assets/niu/fonts/iconfont.css" />	
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
		<style>
		ul, ol { list-style: none; }
		/** 清除内外边距 **/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
pre, /* text formatting elements 文本格式元素 */
form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
th, td /* table elements 表格元素 */ {
  margin: 0;
  padding: 0;
}
	.session>.left{
	width: 150.39px !important;	
	border: 1px solid #DEDEDE;
	border-radius: 8px;
	background: #D6E3E6;
	padding: 10px;
	font-size: 13px;
	height: 987px;
	position:fixed !important;

}
.left .title{
	font-weight: bold;
	margin: 10px 0;
}
.left .form{
	margin-bottom: 20px;
}
.left .form p{
	margin: 5px;
}
.left input[type=text],.left input[type=password]{
	width: 100%;
	padding: 3px 2px;
    border: 1px solid #ddd;
    line-height: 16px;
}
.left .form button{
	margin: 8px;
}
.left .font{
	text-align: center;
	margin: 5px;
}
.left .telphone{
	color: red;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
}
.left .code{
	text-align: center;
	margin: 20px 0;
}
.left .code p{
	height: 25px;
	line-height: 25px;
	font-size: 14px;
}
.left .code .pic{
	width: 100%;
	margin-top: 20px;
}
.left .code .pic img{
	width: 100%;
}
.left .zy ul{
	display: block;    
    background: #fff;
    border-radius: 12px;
}
.left .zy li{
	height: 35px;
	line-height: 35px;
	 padding-left: 10px;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    cursor: pointer;
}
.left .zy li:hover a{
	color: red;
}
.left .zy li:last-child{
	border: none;
}
.left .zy li a{
	color: #333;
	font-size:12px;
}

.left input[type=text], .left input[type=password] {
    width: 100%;
    padding: 3px 2px;
    border: 1px solid #ddd;
    line-height: 16px;
    height: inherit;
    margin-bottom: 0px;
}
.left .form button {
    margin: 0px;
}
	</style>
</head>
		<div class="container" style="margin-top:30px;">
		<ul class="breadcrumb">
						<li class="active">热门考试：</li>
						<li><a href="{:url('portal/alipay/wscj')}">卫生初级</a></li>
						<li><a href="{:url('portal/alipay/wszg')}">卫生中级</a></li>
						<li><a href="{:url('portal/alipay/fugao')}">卫生副高</a></li>
						<li><a href="{:url('portal/alipay/gaoji')}">卫生正高</a></li>
						<li><a href="{:url('portal/alipay/hushi')}">执业护士</a></li>
						<li><a href="{:url('portal/alipay/yishi')}">执业医师</a></li>
						<li class="active"><a href="{:url('portal/alipay/yaoshi')}">执业药师</a></li>
		</ul>
		<div class="row">
		<div class="col-md-2 hidden-xs">
			{include file="layout/alipay_left"/}
			</div>
			<div class="col-md-10">
			<!-- <div class="rightbox"> -->
			
			<table class="table table-bordered table-hover">
			<!-- <tr >
    		<div class="search"  >
				<input type="search" id="searchvalue" /> <button class="searchbtn">搜索</button>
			</div>
    	</tr> -->
           <tr>
            <td colspan="8"  align="center" id="booktitle"><img style="height:15px;line-height:100%;" src="/assets/niu/images/s.gif"><span>点击查看</span>
			{foreach name="category" item="vo"}
                <a href="?cid={$vo['id']}">{$vo['name']}</a>
                {/foreach}
				
				</td>
				</tr>
                    <tr>
                        <th>{$title}专业名称</th>
                        <th width="70px">题量</th>
                        <th class="hidden-xs" width="100px">电脑端</th>
                        <th class="hidden-xs" width="90px">班次对比</th>
                        <th class="hidden-xs" width="70px">视频</th>
                        <th width="60px">购买</th>
                    </tr>
                    
                    <tbody>
                    {foreach name="categorydata" item="vo"}
                    <tr class="success">
                        <td><a href="https://vip.niukewang.com/{$vo['en_name']}.html">{:date('Y',time())}年{$vo['short_name']}</a></td>
                        {php}
                            $content = json_decode($vo['content']);
                        $str = '';
                            if($content){
                                foreach($content as $k=>$v){
                                    if($k == "试题量") $str = $v.'题';
                                }
                            }
                        {/php}
                        <td><a href="">{$str}</td>
                        <td class="hidden-xs"><a href=""><i class="glyphicon glyphicon-download-alt">电脑版</i></a></td>
                        <td class="hidden-xs"><a href="https://vip.niukewang.com/portal/pay/?ename={$vo['en_name']}"><i class="glyphicon glyphicon-edit">班次对比</i></a></td>
                        <td class="hidden-xs"><a href="https://vip.niukewang.com/user/register/?ename={$vo['en_name']}"><i class="glyphicon glyphicon-expand">视频</i></a></td>
                        <td><a href="https://vip.niukewang.com/alipay/alipay/?ename={$vo['en_name']}" class="btn btn-success btn-xs">购买</a></td>
                    </tr>
                    {/foreach}

                    </tbody>
                </table>
				
				
			</div>
			</div>
		</div>
		
	</body>
</html>

<script>
				$('.tel').blur(function(){
				
	 var mobile=/^1[34578]\d{9}$/;            	
    if(mobile.test($(this).val())==false){ 
		
    	$(this).next('.tip').html("手机号码有误，请重填")
		
        return false; 
    }else{
    	$(this).next('.tip').html("")
		
    }
})
$('.passward').blur(function(){
	
    if (this.value.length<6 || this.value.length > 12) {
        $(this).next('.tip').html("请设置密码6-12位")
	
        
    }else{
    	$(this).next('.tip').html("")
		
    } 
	  
})
$('.loginbtn').click(function(event){
	if($('.tel').val()==""){	
		$('.tel').next('.tip').html("手机号不能为空")
		event.preventDefault();
	}
	if($('.passward').val()==""){
		$('.passward').next('.tip').html("密码不能为空")
        event.preventDefault();
	}
	
	
})
			</script>
<script>
var domain = encodeURI(document.domain); 
	function chkweixin(){
        return (function(){return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1})();
    }
	 function loadContent(tid){
        $("#bookbody").html("<tr><td colspan=\"8\">数据加载中...</td></tr>");
        var isWx=chkweixin();
        $.getJSON("/assets/niu/json/json.php?t="+tid,function(r){
            var result='';
			//var domain = encodeURI(document.domain); 
			
            $.each(r,function(i,v){
                result+=" <tr> <td><div class=\"tl softlist_name\"><a href=http://vip.niukewang.com/user/register/?ename="+v.en+"&source="+domain+">"+v.ttitle+"</a></div></td><td class=\"hidden-xs\"><div class=\"tl softlist_ti\">"+v.tiliang+"道</div></td><td class=\"visible-xs visible-sm softlist_m\"><a onclick=\"OpenWeixinTip('http://www.niukewang.com/app.html')\" target=\"_blank\">APP下载</a><td class=\"hidden-xs hidden-sm softlist_m\"><a  href=\"javascript:;\" onclick=\"sjb('wszg',event)\" target=\"_blank\">APP下载</a>"
                if(isWx){
                    
					
					result+="<td class=\"softlist_price\"><a href=\"javascript:void(0);\" name="+v.en+" target=_blank data-toggle=\"modal\" title="+v.ttitle+" data-target=\"#niukelogin\" aria-labelledby=\"myModalLabel\">题库</a></td><td class=\"hidden-xs softlist_price\">";
					
					if(v.wuyou>0){
					result+="<a href=\"javascript:void(0);\" name="+v.en+" target=_blank data-toggle=\"modal\" title="+v.ttitle+" data-target=\"#niukelogin\" aria-labelledby=\"myModalLabel\">课程</a>";
					}
					result+="</td><td class=\"hidden-xs softlist_info\">";
					if(v.mixun>0){
					result+="<a href=\"javascript:void(0);\" name="+v.en+" target=_blank data-toggle=\"modal\" title="+v.ttitle+" data-target=\"#niukelogin\" aria-labelledby=\"myModalLabel\">提分班</a></td>";
					}
					
					result+="<td class=\"softlist_price buybtn\"><a  href=\"javascript:;\" onclick=\"OpenWeixinTip('http://vip.niukewang.com/alipay/alipay.html?name="+v.en+"')\"></a></td></tr>"
                }
				
				else{
                    
                   				
					result+="<td class=\"softlist_price\"><span style=\"color:#06F;cursor:pointer;\" name="+v.en+" target=_blank title="+v.ttitle+" onclick=\"getSignin(this);\">题库</span></td><td class=\"hidden-xs softlist_price\">";
					
					if(v.wuyou>0){
					result+="<span style=\"color:#06F;cursor:pointer;\" name="+v.en+" target=_blank title="+v.ttitle+" onclick=\"getSignin(this);\">课程</span>";
					}
					result+="</td><td class=\"hidden-xs softlist_info\">";
					if(v.mixun>0){
					result+="<span style=\"color:#06F;cursor:pointer;\" name="+v.en+" target=_blank title="+v.ttitle+" onclick=\"getSignin(this);\">提分班</span></td>";
					}
					
					result+="<td class=\"softlist_price buybtn\"><a href=\"http://vip.niukewang.com/alipay/alipay.html?name="+v.en+"\"></a></td></tr>"
                }
            });
            $("#bookbody").html(result);
			
        });
    }
	function OpenWeixinTip(url){
        if(chkweixin()){
            $("#weixin-tip").show();
            return;
        }
        window.location.href=url;
    }
    $(function(){
        $("#booktitle a").click(function(){
            var tid=$(this).attr('atid');
            loadContent(tid);
        });
        $("#booktitle a:first").click();
    })
    $('.ceng').click(function(){   
   $('#niukelogin').modal('hide');
 
 
 
   })
function getSignin(obj) {
	//var domain = encodeURI(document.domain);
	 var src = "{:url('user/register')}"+'?ename=' + $(obj).attr('name')+"&source="+domain;
        $('#niukelogin').modal('show');
		
       $('#niukelogin iframe').attr('src', src).ready();
	  
    }
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?aa6f8d7013045cd305a75e8b8428bbb8";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</body>

</html>
